package com.sakuracard.stepdemo.mapper;

import com.sakuracard.stepdemo.web.model.SearchParams;

import java.util.List;

public interface BaseMapper<T> {
  int selectCount(SearchParams params);

  List<T> selectList(SearchParams params);

  T selectById(Integer id);

  int insert(T item);

  int update(T item);

  int delete(Integer id);
}